package org.jeecg.modules.monitoring.j_monitoring.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.monitoring.j_monitoring.entity.RingDevices;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 动环设备Mapper
 * @Author: xiaoyq
 * @Date:   2023-07-11
 * @Version: V1.0
 */
public interface RingDevicesMapper extends BaseMapper<RingDevices> {
    /**
     * 查询动环设备信息
     * @param ringDevices
     * @return
     */
    int insertSelective(RingDevices ringDevices);

    /**
     * 查询所有动环设备信息列表
     * @return
     */
    List<RingDevices> selectAllList();

    /**
     * 根据名称列表获得东花市吧列表
     * @param nameList
     * @return
     */
    List<RingDevices> selectByNameList(@Param("nameList") List<String> nameList);

    /**
     * 插入动环空间
     * @param ringDevices
     * @return
     */
    int insertSpace(RingDevices ringDevices);

    /**
     * 根据父Id获得动环设备列表
     * @param parentId
     * @return
     */
    List<RingDevices> selectByParentId(@Param("parentId") String parentId);

    /**
     * 根据名称和父id查询动环设备列表
     * @param likeName
     * @param notLikeName
     * @param parentId
     * @return
     */
    List<RingDevices> selectByNameAndParentId(@Param("likeName") String likeName,
                                              @Param("notLikeName") String notLikeName,
                                              @Param("parentId") String parentId);

    int deleteAll();
}
